widget: Don't show widget resizes in the inspector
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Apr 2016 03:32:26 +0000 (23:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 20 Apr 2016 03:32:26 +0000 (23:32 -0400)
Avoiding this sort of visual debugging in the inspector
is the main reason we have per-display debug flags now.

gtk/gtkwidget.c

index 1e87e10ef9d06de5f9540d12d8ed35d3a55ab4c1..ac86d9dedabd757c2de7e2aa4dfb8b92cfe5d733 100644 (file)
@@ -5959,7 +5959,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget     *widget,
   gtk_widget_push_verify_invariants (widget);
 
 #ifdef G_ENABLE_DEBUG
-  if (GTK_DEBUG_CHECK (RESIZE))
+  if (GTK_DISPLAY_DEBUG_CHECK (gtk_widget_get_display (widget), RESIZE))
     {
       priv->highlight_resize = TRUE;
       gtk_widget_queue_draw (widget);